<?php
$this->title = "Home";
$this->headTitle($this->title);

if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
 	require_once (APPLICATION_PATH . "\\functions\\utilities.php");
} else {
    require_once (APPLICATION_PATH . "//functions//utilities.php");
}
?>	

		
		<!-- start content -->

		<div id="home_inside" class="content">
			

				<?php $session = Zend_Registry::get('session');?>
				
				<?php if (empty($this->statuses)) {?>	
				<p> There are no status updates from your friends. </p>
				<?php } ?>
									
				<?php if (!empty($this->statuses)) { ?>
				
					<table title="Statuses" id="hor-minimalist-a"  >
					<thead>
						<tr>
							<th>Status</th>
							<th>Updated</th>
							<th>&nbsp;</th>					
						</tr>
					</thead>
					<tbody>
					<?php foreach($this->statuses as $status) : ?>
						<tr>
							<td> 
								<?php $statusline = Utilities::formMoodHome($status['Text'], $status['Mood'], $status['User_id']);
									echo $statusline;  //$status['Text'];  ?> 
							</td>
							<td>
								<?php
									$time = new Zend_Date($status['DateUpdate']);																		
									$dateUpdated=$time->toString("HH:mm:ss dd-MM");									
									echo $dateUpdated;
								?>
							</td>
							<td>
								<a href="<?php echo $this->url(array('controller'=>'Profile','action'=>'index'))."?id=". $status['User_id'] ?>">View profile</a>
							</td>
						</tr>
				<?php endforeach; }?>
					</tbody>
				</table>
				
				
		</div>

		<!-- end content -->
		
		<div id="Slider"></div>

		